home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19971216-19980424
/
000270_news@newsmaster….columbia.edu _Fri Feb 27 09:54:52 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id JAA16290
for <kermit.misc@watsun.cc.columbia.edu>; Fri, 27 Feb 1998 09:54:47 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id JAA02734
for kermit.misc@watsun; Fri, 27 Feb 1998 09:54:46 -0500 (EST)
Path: news.columbia.edu!panix!nntprelay.mathworks.com!news.maxwell.syr.edu!bignews.mediaways.net!newsfeed.metronet.de!newsfeed2.ecrc.net!news.siemens.de!news.mch.sni.de!michel
From: Michel.Dalle@sni.be (Michel Dalle)
Newsgroups: comp.protocols.kermit.misc
Subject: Catching errors while executing 'run console-app' commands in K95 ?
Date: Fri, 27 Feb 1998 16:51:46 GMT
Organization: Siemens Nixdorf
Lines: 32
Message-ID: <6d6jic$q5a$1@horus.mch.sni.de>
NNTP-Posting-Host: michel.ch.sni.be
X-Newsreader: News Xpress 2.01
Xref: news.columbia.edu comp.protocols.kermit.misc:8462
Hello,
I'm still trying to catch all kinds of errors while I'm executing scripts with
K95. What has me stumped now is the following :
In a Kermit script, I want to launch a "console application" (something that
runs in the DOS box of Windows 95 and NT). The console application returns a
status of 0 if everything is OK, and it sends some messages to STDOUT. If the
console application failes, it returns a status of 1, 2, 3, ... and prints a
corresponding message to STDERR (this can be modified if needed).
How can I :
1) know whether Kermit could launch the console application at all (e.g. no
"Bad command or file name" message)
2) know whether the console application executed correctly or not.
3) if there is an error, catch the error messages from stderr to some variable
in the script.
4) if there is no error, catch the stdout messages to some variable in the
script.
>From what I've seen in tests, \v(status) and \v(exitstatus) always return 0,
and \v(pexitstat) always returns 1, independently of the success or failure of
the console application (at least on Windows 95... ).
Is there another way to catch these errors ?
Thanks for your help,
Michel.
P.S.: oh yes, I'm running K95 1.1.15 on Windows 95, and the console
application was made with Visual C++ 4.2.